var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});


//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});


//为目录页的翻页添加title
if( $(".CurrChnlCls").length > 0 ){
$('.tyj-fenye #num').attr({'title':'页数', 'placeholder':'页数'});
$('.tyj-fenye .zt12').attr({'title':'跳转按钮', 'placeholder':'跳转按钮'});
}

/**
* 图片处理片段
*/

$('img[src="./xwzx/tpxw/201912/W020191229713775937459.jpg"]').attr('title','十四冬赛场我省代表团再夺一金').attr('alt','十四冬赛场我省代表团再夺一金');$('img[src="./images/footer_icon02_20190415.png"]').attr('title','党政机关图标').attr('alt','党政机关图标');$('img[src="./zzzt/201904/W020190428559767912640.jpg"]').attr('title','吉林省第十八届运动会').attr('alt','吉林省第十八届运动会');$('img[src="./201908/W020190809806485607597.jpg"]').attr('title','安立佳副省长看望慰问二青会吉林省参赛运动员').attr('alt','安立佳副省长看望慰问二青会吉林省参赛运动员');$('img[src="./zrl/201904/W020190426565599917888.png"]').attr('title','张瑞林照片').attr('alt','张瑞林照片');$('img[src="./kzgn/wxgzh/images/P020190416586613349480.png"]').attr('title','微信公众号').attr('alt','微信公众号');$('img[src="./xwzx/tpxw/201912/W020191223287283715775.jpg"]').attr('title','网站首页   机构职能   新闻资讯   政务公开   体育动态   办事服务   公益服务   公众参与   办事大厅 首页  >  新闻资讯  >  图片新闻 发布时间：2019-12-23 07:36:00来源： 训练竞赛处 打印| 字号：[  大   中  小  ]|').attr('alt','网站首页   机构职能   新闻资讯   政务公开   体育动态   办事服务   公益服务   公众参与   办事大厅 首页  >  新闻资讯  >  图片新闻 发布时间：2019-12-23 07:36:00来源： 训练竞赛处 打印| 字号：[  大   中  小  ]|');$('img[src="./zzzt/201906/W020190626397237107052.jpg"]').attr('title','不忘初心牢记使命').attr('alt','不忘初心牢记使命');$('img[src="./zzzt/201904/W020190428560819635741.jpg"]').attr('title','玩冰踏雪多彩冬日').attr('alt','玩冰踏雪多彩冬日');$('img[src="./201208/W020190425548870048882.png"]').attr('title','十二冬会精彩片断').attr('alt','十二冬会精彩片断');$('img[src="./zzzt/201912/W020191210333888216614.jpg"]').attr('title','吉林省全民健身网').attr('alt','吉林省全民健身网');$('img[src="./201908/W020190826628050616761.jpg"]').attr('title','张瑞林局长调研考察梅河口市体育工作').attr('alt','张瑞林局长调研考察梅河口市体育工作');$('img[src="./kzgn/sjdapp/images/P020190416586850937744.png"]').attr('title','手机端APP').attr('alt','手机端APP');$('img[src="./201401/W020190425548874085395.jpg"]').attr('title','十二冬会宣传片').attr('alt','十二冬会宣传片');$('img[src="./qyk/201904/W020190426558288019520.jpg"]').attr('title','曲永凯照片').attr('alt','曲永凯照片');$('img[src="./xwzx/tpxw/201910/W020191006394367863423.jpg"]').attr('title','我省短道速滑选手闪耀2019年上海超级杯').attr('alt','我省短道速滑选手闪耀2019年上海超级杯');$('img[src="./zzzt/201904/W020190428552358451903.jpg"]').attr('title','网上办事大厅').attr('alt','网上办事大厅');$('img[src="./201407/W020190425548884195670.jpg"]').attr('title','冬奥会冠军进校园').attr('alt','冬奥会冠军进校园');$('img[src="./images/footer_icon03_20190415.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./xwzx/tpxw/201909/W020190917434549704950.jpg"]').attr('title','吉林北山国家雪上项目训练基地揭牌').attr('alt','吉林北山国家雪上项目训练基地揭牌');$('img[src="./images/jjjd_icon_0412.png"]').attr('title','纪检监督').attr('alt','纪检监督');$('img[src="./mg/201904/W020190426551834444276.jpg"]').attr('title','孟刚照片').attr('alt','孟刚照片');$('img[src="./gyfw/spjc/201909/W020190930517271348306.jpg"]').attr('title','吉林省体校庆祝中华人民共和国成立70周年活动').attr('alt','吉林省体校庆祝中华人民共和国成立70周年活动');$('img[src="./shy/201904/W020190426559433005914.jpg"]').attr('title','宋海友照片').attr('alt','宋海友照片');$('img[src="./images/zzzt_icon_0412.png"]').attr('title','重要专题').attr('alt','重要专题');$('img[src="./gyfw/spjc/201410/W020190425548893432573.jpg"]').attr('title','中国式摔跤').attr('alt','中国式摔跤');$('img[src="./gyfw/spjc/201907/W020190717543762119400.jpg"]').attr('title','我省选手苏耀敏参加二青会武术套路比赛夺冠').attr('alt','我省选手苏耀敏参加二青会武术套路比赛夺冠');$('img[src="./gzcy/zxft/201911/W020191107502103188703.jpg"]').attr('title','在线访谈').attr('alt','在线访谈');$('img[src="./images/yjzj_icon_0412.png"]').attr('title','意见征集').attr('alt','意见征集');$('img[src="./zzzt/201904/W020190428557558652377.jpg"]').attr('title','健康生活 悦动吉林').attr('alt','健康生活 悦动吉林');$('img[src="./images/tybz_icon_0412.png"]').attr('title','体育标准').attr('alt','体育标准');$('img[src="./xwzx/tpxw/201912/W020191228704581634190.jpg"]').attr('title','十四冬赛场吉林时隔40年再夺高山滑雪项目金牌').attr('alt','十四冬赛场吉林时隔40年再夺高山滑雪项目金牌');$('img[src="./zzzt/201904/W020190428553210740559.jpg"]').attr('title','国家网络安全宣传周').attr('alt','国家网络安全宣传周');$('img[src="./201908/W020190811329200360220.jpg"]').attr('title','我省选手收获场地自行车比赛金牌').attr('alt','我省选手收获场地自行车比赛金牌');$('img[src="./201908/W020190818227373177249.jpg"]').attr('title','我省运动员陈佳鹏夺得男子200米金牌').attr('alt','我省运动员陈佳鹏夺得男子200米金牌');$('img[src="./images/wsdc_icon_0412.png"]').attr('title','网上调查').attr('alt','网上调查');$('img[src="./images/logo_tyj_0409.png"]').attr('title','吉林省体育局').attr('alt','吉林省体育局');$('img[src="./xwzx/tpxw/201909/W020190923493228679569.jpg"]').attr('title','趣味运动会助力体育精准扶贫').attr('alt','趣味运动会助力体育精准扶贫');$('img[src="./gyfw/spjc/201410/W020190425548890233212.jpg"]').attr('title','航模比赛').attr('alt','航模比赛');$('img[src="./hjh/201904/W020190426560260398261.jpg"]').attr('title','韩俊华照片').attr('alt','韩俊华照片');$('img[src="./201403/W020190425548880619710.jpg"]').attr('title','洮南冰雪活动').attr('alt','洮南冰雪活动');$('img[src="./gyfw/spjc/201408/W020190425548887026165.jpg"]').attr('title','第十七届省运会宣传片').attr('alt','第十七届省运会宣传片');$('img[src="./kzgn/gfwb/images/P020190416586744606439.png"]').attr('title','官方微博').attr('alt','官方微博');$('img[src="./images/footer_icon01_20190415.png"]').attr('title','政府网站找错').attr('alt','政府网站找错');$('img[src="./201908/W020190809345848242779.jpg"]').attr('title','全国二青会太原开幕 我省1263名运动员参赛').attr('alt','全国二青会太原开幕 我省1263名运动员参赛');$('img[src="./images/djcx_icon_0412.png"]').attr('title','等级查询').attr('alt','等级查询');$('img[src="./xwzx/tpxw/201912/W020191223287540811293.jpg"]').attr('title','“玩冰踏雪·健康吉林”2019-2020年度吉林省冰雪体育系列活动在梅河口海龙湖启动').attr('alt','“玩冰踏雪·健康吉林”2019-2020年度吉林省冰雪体育系列活动在梅河口海龙湖启动');
$('img[src="./xwzx/tpxw/202003/W020200309335620873143.jpg"]').attr('title','“吉祥码”上线了，“码”上行动').attr('alt','“吉祥码”上线了，“码”上行动');
$('img[src="./xwzx/tpxw/202001/W020200127343475920359.jpg"]').attr('title','国务院办公厅向全社会征集！疫情防控不力、缓报瞒报的线索，加强改进的建议').attr('alt','国务院办公厅向全社会征集！疫情防控不力、缓报瞒报的线索，加强改进的建议');
$('img[src="./xwzx/tpxw/202001/W020200121301428336958.jpg"]').attr('title','吉林足球全运会成年组第一次拿到奖牌').attr('alt','吉林足球全运会成年组第一次拿到奖牌');
$('img[src="./xwzx/tpxw/202001/W020200117261003624256.jpg"]').attr('title','第十四届全国冬季运动会吉林省体育代表团成立大会在长春召开').attr('alt','第十四届全国冬季运动会吉林省体育代表团成立大会在长春召开');
$('img[src="./xwzx/tpxw/202001/W020200112612154275514.jpg"]').attr('title','十四冬冰上龙舟比赛我省代表队获3金7银').attr('alt','十四冬冰上龙舟比赛我省代表队获3金7银');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})
/**
* 共通头部
*/
$("form[name='form_cds'] input[name='searchword']").attr("title","请输入关键词搜索");
$("form[name='form_cds'] input[name='searchword']").attr("placeholder","请输入关键词搜索");
$("form[name='form_cds'] input[type='submit']").attr("title","查询");
//导航
//	$(".main-hd .nav_box0 ul li:eq(8) span a").focus(function(){
//		$("a").mouseout();
//	});

//第一部分
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".nav_box0 ul li:eq(1) b a").length - 1;
_EsdDynamicTransformationScript.num2 = $(".nav_box0 ul li:eq(2) b a").length - 1;
_EsdDynamicTransformationScript.num3 = $(".nav_box0 ul li:eq(3) b a").length - 1;
_EsdDynamicTransformationScript.num4 = $(".nav_box0 ul li:eq(4) b a").length - 1;
_EsdDynamicTransformationScript.num5 = $(".nav_box0 ul li:eq(5) b a").length - 1;
_EsdDynamicTransformationScript.num6 = $(".nav_box0 ul li:eq(6) b a").length - 1;
_EsdDynamicTransformationScript.num7 = $(".nav_box0 ul li:eq(7) b a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".nav_box0 ul li:eq(1) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".nav_box0 ul li:eq(2) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3 = $(".nav_box0 ul li:eq(3) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum4 = $(".nav_box0 ul li:eq(4) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum5 = $(".nav_box0 ul li:eq(5) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum6 = $(".nav_box0 ul li:eq(6) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum7 = $(".nav_box0 ul li:eq(7) span a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum8 = $(".nav_box0 ul li:eq(8) span a:eq(0)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".nav_box0 ul li:eq(1) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".nav_box0 ul li:eq(2) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum3Content1 = $(".nav_box0 ul li:eq(3) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum4Content1 = $(".nav_box0 ul li:eq(4) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum5Content1 = $(".nav_box0 ul li:eq(5) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum6Content1 = $(".nav_box0 ul li:eq(6) b a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum7Content1 = $(".nav_box0 ul li:eq(7) b a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".nav_box0 ul li:eq(1) b a:eq(" + _EsdDynamicTransformationScript.num1 + ")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".nav_box0 ul li:eq(2) b a:eq(" + _EsdDynamicTransformationScript.num2 + ")");
_EsdDynamicTransformationScript.esd1TagNum3ContentN = $(".nav_box0 ul li:eq(3) b a:eq(" + _EsdDynamicTransformationScript.num3 + ")");
_EsdDynamicTransformationScript.esd1TagNum4ContentN = $(".nav_box0 ul li:eq(4) b a:eq(" + _EsdDynamicTransformationScript.num4 + ")");
_EsdDynamicTransformationScript.esd1TagNum5ContentN = $(".nav_box0 ul li:eq(5) b a:eq(" + _EsdDynamicTransformationScript.num5 + ")");
_EsdDynamicTransformationScript.esd1TagNum6ContentN = $(".nav_box0 ul li:eq(6) b a:eq(" + _EsdDynamicTransformationScript.num6 + ")");
_EsdDynamicTransformationScript.esd1TagNum7ContentN = $(".nav_box0 ul li:eq(7) b a:eq(" + _EsdDynamicTransformationScript.num7 + ")");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {

e = $(this).mouseover();
$(document).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(document).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(document).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(document).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(document).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
$(document).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
$(document).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
$(document).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
$(document).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
$(document).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
$(document).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus(function () {
$(document).bind("keydown.keydown_e3", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum3ContentN.blur(function () {
$(document).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd1TagNum4.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum3.mouseover();
_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum4.blur(function () {
$(document).unbind("keydown.keydown_4");
});

_EsdDynamicTransformationScript.esd1TagNum4Content1.focus(function () {
$(document).bind("keydown.keydown_s4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum4Content1.blur(function () {
$(document).unbind("keydown.keydown_s4");
});

_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus(function () {
$(document).bind("keydown.keydown_e4", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum4ContentN.blur(function () {
$(document).unbind("keydown.keydown_e4");
});

//第五块
_EsdDynamicTransformationScript.esd1TagNum5.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_5", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum4.mouseover();
_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum5.blur(function () {
$(document).unbind("keydown.keydown_5");
});

_EsdDynamicTransformationScript.esd1TagNum5Content1.focus(function () {
$(document).bind("keydown.keydown_s5", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum5Content1.blur(function () {
$(document).unbind("keydown.keydown_s5");
});

_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus(function () {
$(document).bind("keydown.keydown_e5", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum5ContentN.blur(function () {
$(document).unbind("keydown.keydown_e5");
});

//第六块
_EsdDynamicTransformationScript.esd1TagNum6.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_6", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum5.mouseover();
_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum6.blur(function () {
$(document).unbind("keydown.keydown_6");
});

_EsdDynamicTransformationScript.esd1TagNum6Content1.focus(function () {
$(document).bind("keydown.keydown_s6", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd1TagNum6Content1.blur(function () {
$(document).unbind("keydown.keydown_s6");
});

_EsdDynamicTransformationScript.esd1TagNum6ContentN.focus(function () {
$(document).bind("keydown.keydown_e6", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum7.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum6ContentN.blur(function () {
$(document).unbind("keydown.keydown_e6");
});

//第七块
_EsdDynamicTransformationScript.esd1TagNum7.focus(function (e) {
e = $(this).mouseover();
$(document).bind("keydown.keydown_7", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum6.mouseover();
_EsdDynamicTransformationScript.esd1TagNum6ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum7Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd1TagNum7.blur(function () {
$(document).unbind("keydown.keydown_7");
});

_EsdDynamicTransformationScript.esd1TagNum7ContentN.focus(function (e) {
$(document).bind("keydown.keydown_e7", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum7.mouseout();
_EsdDynamicTransformationScript.esd1TagNum8.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum7ContentN.blur(function () {
$(document).unbind("keydown.keydown_e7");
});

//第八块
_EsdDynamicTransformationScript.esd1TagNum8.focus(function (e) {
$(document).bind("keydown.keydown_8", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum7.mouseover();
_EsdDynamicTransformationScript.esd1TagNum7ContentN.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esd1TagNum8.blur(function () {
$(document).unbind("keydown.keydown_8");
});










var part_First = function(){


//轮播,右下角原点--鼠标点击触发情况

//轮播：只获取轮播中一个a标签。
//以文字a标签为主，图片a标签尽量不要，title不稳定

//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $(".main-hd .nav_box0 ul li:eq(8) span a");

//文字A标签
_EsdDynamicTransformationScript.esdTagANum1 = $(".focusBox-picture .pic li:eq(0) span a");
_EsdDynamicTransformationScript.esdTagANum2 = $(".focusBox-picture .pic li:eq(1) span a");
_EsdDynamicTransformationScript.esdTagANum3 = $(".focusBox-picture .pic li:eq(2) span a");
_EsdDynamicTransformationScript.esdTagANum4 = $(".focusBox-picture .pic li:eq(3) span a");
_EsdDynamicTransformationScript.esdTagANum5 = $(".focusBox-picture .pic li:eq(4) span a");

//原点
_EsdDynamicTransformationScript.esdTagCircleNum1 = $(".focusBox-picture .hd li:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $(".focusBox-picture .hd li:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $(".focusBox-picture .hd li:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $(".focusBox-picture .hd li:eq(3)");
_EsdDynamicTransformationScript.esdTagCircleNum5 = $(".focusBox-picture .hd li:eq(4)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".outBox-ywnews .hd ul li:eq(0) span a");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(document).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
if(_EsdDynamicTransformationScript.esdTagANum1.length!=0){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(document).unbind("keydown.keydown_0");
});



//第一块
_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum1.click();
$(document).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
$(document).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum2.click();
$(document).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.click();
_EsdDynamicTransformationScript.esdTagANum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
$(document).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum3.click();
$(document).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.click();
_EsdDynamicTransformationScript.esdTagANum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
$(document).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
$(document).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.click();
_EsdDynamicTransformationScript.esdTagANum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
$(document).unbind("keydown.keydown_4");
});

//第五块
_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {

_EsdDynamicTransformationScript.esdTagCircleNum5.click();
$(document).bind("keydown.keydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.click();
_EsdDynamicTransformationScript.esdTagANum4.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
$(document).unbind("keydown.keydown_5");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {

$(document).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum5.click();
_EsdDynamicTransformationScript.esdTagANum5.focus();
return false;
}else if (e.keyCode == 9) {

}
});

});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(document).unbind("keydown.keydown_6");
});



}
/**
* 二级页
*/

//------------------------------------二级页---------------------------------------

if(location.href=="http://tyj.jl.gov.cn/gzcy/jzxx1/"){ //局长信箱
_EsdDynamicTransformationScript.iframeInputInterval = setInterval(function(){
if(document.getElementsByTagName("iframe")[0].contentWindow.document.getElementsByTagName("input")[0]!=undefined){
clearInterval(_EsdDynamicTransformationScript.iframeInputInterval);
var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"通讯地址"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder: "单位名称"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder: "电子邮件"});
$(inputIframe).find("#frmData input:eq(5)").attr({placeholder: "标题"});
$(inputIframe).find("#frmData input:eq(6)").attr({placeholder: "提问时间"});
$(inputIframe).find("#frmData textarea:eq(0)").attr({placeholder:"内容"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");
}
}, 500);
}
/**
* 主页js
*/

if ( location.href == "http://tyj.jl.gov.cn/index.html" || location.href == "http://tyj.jl.gov.cn/" ) {
//第二部分，含iframe---待定

// 总计时器，保证目标加载完毕再执行js（轮播+国内动态+国务院[iframe]）
_EsdDynamicTransformationScript.intervalTyj = setInterval(function(){

if( ( $(".focusBox-picture .pic li:eq(4) span a") != undefined )
&& ( $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)") != undefined )
&& ( $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)") != undefined )  ){
clearInterval(_EsdDynamicTransformationScript.intervalTyj);

part_First();
part_Second();
part_Third();
part_Forth();
part_Sixth();
part_Seventh();
part_Eigth();
part_Ninth();

}

}, 500);



var part_Second = function(){
//第三部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num13 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num14 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
_EsdDynamicTransformationScript.num15 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd3TagNum1 = $(".Second-line-index .outBox-left .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd3TagNum2 = $(".Second-line-index .outBox-left .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd3TagNum3 = $(".Second-line-index .outBox-left .hd ul li:eq(2) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num13 + ")");
_EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num14 + ")");
_EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".Second-line-index .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num15 + ")");

//第一块
_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3.mouseover();
_EsdDynamicTransformationScript.esd3TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

}

var part_Third = function(){

//第四部分
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num16 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num17 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
_EsdDynamicTransformationScript.num18 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;
_EsdDynamicTransformationScript.num19 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd4TagNum3 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(2) a");
_EsdDynamicTransformationScript.esd4TagNum4 = $(".Fourth-line-index:eq(0) .outBox-left .hd ul li:eq(3) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum3Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum4Content1 = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num16 + ")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num17 + ")");
_EsdDynamicTransformationScript.esd4TagNum3ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num18 + ")");
_EsdDynamicTransformationScript.esd4TagNum4ContentN = $(".Fourth-line-index:eq(0) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(" + _EsdDynamicTransformationScript.num19 + ")");

//第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd4TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum4.mouseover();
_EsdDynamicTransformationScript.esd4TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd4TagNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

}

var part_Forth = function(){
//第五部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num20 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num21 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;
_EsdDynamicTransformationScript.num22 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a").length - 1;
_EsdDynamicTransformationScript.num23 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd5TagNum1 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd5TagNum2 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd5TagNum3 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(2) a");
_EsdDynamicTransformationScript.esd5TagNum4 = $(".Fourth-line-index:eq(0) .outBox-right .hd ul li:eq(3) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd5TagNum3Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd5TagNum4Content1 = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num20 + ")");
_EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num21 + ")");
_EsdDynamicTransformationScript.esd5TagNum3ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(2) a:eq(" + _EsdDynamicTransformationScript.num22 + ")");
_EsdDynamicTransformationScript.esd5TagNum4ContentN = $(".Fourth-line-index:eq(0) .outBox-right .tempWrap .bd .inBox-right:eq(3) a:eq(" + _EsdDynamicTransformationScript.num23 + ")");

//第一块
_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd5TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
_EsdDynamicTransformationScript.esd5TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd5TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum3Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd5TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd5TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd5TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum4.mouseover();
_EsdDynamicTransformationScript.esd5TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd5TagNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
_EsdDynamicTransformationScript.esd5TagNum3ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});


}

var part_Sixth = function(){
//第六部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num24 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num25 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;
_EsdDynamicTransformationScript.num26 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a").length - 1;
_EsdDynamicTransformationScript.num27 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd6TagNum1 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd6TagNum2 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(1) a");
_EsdDynamicTransformationScript.esd6TagNum3 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(2) a");
_EsdDynamicTransformationScript.esd6TagNum4 = $(".Fourth-line-index:eq(1) .outBox-left .hd ul li:eq(3) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd6TagNum1Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum2Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum3Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum4Content1 = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd6TagNum1ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num24 + ")");
_EsdDynamicTransformationScript.esd6TagNum2ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num25 + ")");
_EsdDynamicTransformationScript.esd6TagNum3ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(2) a:eq(" + _EsdDynamicTransformationScript.num26 + ")");
_EsdDynamicTransformationScript.esd6TagNum4ContentN = $(".Fourth-line-index:eq(1) .outBox-left .tempWrap .bd .inBox-left:eq(3) a:eq(" + _EsdDynamicTransformationScript.num27 + ")");

//第一块
_EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
_EsdDynamicTransformationScript.esd6TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});
//第二块
_EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1.mouseover();
_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd6TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3.mouseover();
_EsdDynamicTransformationScript.esd6TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd6TagNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd6TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum4.mouseover();
_EsdDynamicTransformationScript.esd6TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});

//第四块
_EsdDynamicTransformationScript.esd6TagNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3.mouseover();
_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum4Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd6TagNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

}

var part_Seventh = function(){

//第七部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num28 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num29 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd7TagNum1 = $(".Fourth-line-index:eq(1) .outBox-right .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd7TagNum2 = $(".Fourth-line-index:eq(1) .outBox-right .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd7TagNum1Content1 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd7TagNum2Content1 = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd7TagNum1ContentN = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num28 + ")");
_EsdDynamicTransformationScript.esd7TagNum2ContentN = $(".Fourth-line-index:eq(1) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num29 + ")");

//第一块
_EsdDynamicTransformationScript.esd7TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd7TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum2.mouseover();
_EsdDynamicTransformationScript.esd7TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd7TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum1.mouseover();
_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd7TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

}

var part_Eigth = function(){
//第八部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num30 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num31 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd8TagNum1 = $(".Fourth-line-index:eq(2) .outBox-left .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd8TagNum2 = $(".Fourth-line-index:eq(2) .outBox-left .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd8TagNum1Content1 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd8TagNum2Content1 = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd8TagNum1ContentN = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(0) a:eq(" + _EsdDynamicTransformationScript.num30 + ")");
_EsdDynamicTransformationScript.esd8TagNum2ContentN = $(".Fourth-line-index:eq(2) .outBox-left .tempWrap .bd .inBox-left:eq(1) a:eq(" + _EsdDynamicTransformationScript.num31 + ")");

//第一块
_EsdDynamicTransformationScript.esd8TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd8TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum2.mouseover();
_EsdDynamicTransformationScript.esd8TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd8TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum1.mouseover();
_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

}

var part_Ninth = function(){
//第九部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num32 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a").length - 1;
_EsdDynamicTransformationScript.num33 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a").length - 1;

//各个选项名称
_EsdDynamicTransformationScript.esd9TagNum1 = $(".Fourth-line-index:eq(2) .outBox-right .hd ul li:eq(0) a");
_EsdDynamicTransformationScript.esd9TagNum2 = $(".Fourth-line-index:eq(2) .outBox-right .hd ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd9TagNum1Content1 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd9TagNum2Content1 = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd9TagNum1ContentN = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(0) a:eq(" + _EsdDynamicTransformationScript.num32 + ")");
_EsdDynamicTransformationScript.esd9TagNum2ContentN = $(".Fourth-line-index:eq(2) .outBox-right .tempWrap .bd .inBox-right:eq(1) a:eq(" + _EsdDynamicTransformationScript.num33 + ")");

//第一块
_EsdDynamicTransformationScript.esd9TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd9TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd9TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum2.mouseover();
_EsdDynamicTransformationScript.esd9TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd9TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1.mouseover();
_EsdDynamicTransformationScript.esd9TagNum1ContentN.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

}

// ----------------------------------------------- 动态要闻信息转载部分处理 开始 -----------------------------------------------


_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
var keydownName = "keydown.navKeydown_" + keyDownNum;
var keydownName2 = keydownName + "_1";
var keydownName3 = keydownName + "_2";

$(focusObjSelector).focus(function () {
$(focusObjSelector).mouseover();
$(this).bind(keydownName, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if (prevMouseEventObjSelector != "") {
$(focusObjSelector).mouseout();
$(prevMouseEventObjSelector).mouseover();
$(prevListObjsSelector).last().focus();
$(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
return false;
} else {
$(focusObjSelector).mouseout();
$(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
}
} else if (e.keyCode == 9) {
$(listElementsSelector).first().focus();
return false;
}
});

});
$(focusObjSelector).blur(function () {
$(this).unbind(keydownName);
});

$(listElementsSelector).first().focus(function () {
$(this).bind(keydownName2, function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(focusObjSelector).focus();
return false;
} else if (e.keyCode == 9) {}
});
});
$(listElementsSelector).first().blur(function () {
$(this).unbind(keydownName2);
});

$(listElementsSelector).last().focus(function () {
$(this).bind(keydownName3, function (e) {
if (e.shiftKey && e.keyCode == 9) {

}else if (e.keyCode == 9) {
$(mouseEventObjSelector).mouseout();
$(mouseEventObjSelector).next().mouseover();
$(mouseEventObjSelector).next().find("a").focus();
return false;
}
});
});
$(listElementsSelector).last().blur(function () {
$(this).unbind(keydownName3);
});
};

_EsdDynamicTransformationScript.tabArray = new Array();

_EsdDynamicTransformationScript.tab1 = {}
_EsdDynamicTransformationScript.tab1.focusObjSelector = ".outBox-ywnews .hd li:eq(0) a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.tab1.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.tab1.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(0)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.tab1.keyDownNum = 0; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.tab1.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(0) a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.tab1.prevMouseEventObjSelector = ""; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.tab1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.tabArray.push(_EsdDynamicTransformationScript.tab1); // 放到数组里循环

_EsdDynamicTransformationScript.tab2 = {}
_EsdDynamicTransformationScript.tab2.focusObjSelector = ".outBox-ywnews .hd li:eq(1) a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.tab2.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.tab2.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.tab2.keyDownNum = 1; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.tab2.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(1) a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.tab2.prevMouseEventObjSelector = ".outBox-ywnews .hd li:eq(0)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.tab2.prevListObjsSelector = ".outBox-ywnews .inBox-ywnews:eq(0) a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.tabArray.push(_EsdDynamicTransformationScript.tab2); // 放到数组里循环


for (var i = 0; i < _EsdDynamicTransformationScript.tabArray.length; i++) {
_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.tabArray[i].focusObjSelector, _EsdDynamicTransformationScript.tabArray[i].listObjSelector,
_EsdDynamicTransformationScript.tabArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.tabArray[i].keyDownNum, _EsdDynamicTransformationScript.tabArray[i].listElementsSelector,
_EsdDynamicTransformationScript.tabArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.tabArray[i].prevListObjsSelector);
}

_EsdDynamicTransformationScript.tab3 = {}
_EsdDynamicTransformationScript.tab3.focusObjSelector = ".outBox-ywnews .hd li:eq(2) a"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.tab3.listObjSelector = ""; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.tab3.mouseEventObjSelector = ".outBox-ywnews .hd li:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.tab3.keyDownNum = 2; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.tab3.listElementsSelector = ".outBox-ywnews .inBox-ywnews:eq(2) a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.tab3.prevMouseEventObjSelector = ".outBox-ywnews .hd li:eq(1)"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.tab3.prevListObjsSelector = ".outBox-ywnews .inBox-ywnews:eq(1) a"; // 上一个相邻的展示列表中a链接的选择器


_EsdDynamicTransformationScript.tyjTab3Change = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
var keydownName = "keydown.navKeydown_" + keyDownNum;
var keydownName2 = keydownName + "_1";
var keydownName3 = keydownName + "_2";

$(focusObjSelector).focus(function () {
$(focusObjSelector).mouseover();
$(this).bind(keydownName, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if (prevMouseEventObjSelector != "") {
$(focusObjSelector).mouseout();
$(prevMouseEventObjSelector).mouseover();
$(prevListObjsSelector).last().focus();
$(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
return false;
} else {
$(focusObjSelector).mouseout();
$(this).unbind(keydownName); // 失去焦点时解绑有问题在这解绑一次
}
} else if (e.keyCode == 9) {
$(listElementsSelector).first().focus();
return false;
}
});

});
$(focusObjSelector).blur(function () {
$(this).unbind(keydownName);
});

$(listElementsSelector).first().focus(function () {
$(this).bind(keydownName2, function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(focusObjSelector).focus();
return false;
} else if (e.keyCode == 9) {}
});
});
$(listElementsSelector).first().blur(function () {
$(this).unbind(keydownName2);
});

};

_EsdDynamicTransformationScript.tyjTab3Change(_EsdDynamicTransformationScript.tab3.focusObjSelector, _EsdDynamicTransformationScript.tab3.listObjSelector,
_EsdDynamicTransformationScript.tab3.mouseEventObjSelector, _EsdDynamicTransformationScript.tab3.keyDownNum, _EsdDynamicTransformationScript.tab3.listElementsSelector,
_EsdDynamicTransformationScript.tab3.prevMouseEventObjSelector, _EsdDynamicTransformationScript.tab3.prevListObjsSelector);

//将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function (jsObj, iframeObj) {
if (iframeObj != undefined) {
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num - 1];
jsObj.self = iframeObj;
}
};

//声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0]; // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1]; // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".inHd li:eq(0) a"); // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".inHd li:eq(1) a"); // 需要修改 这里的tab获取

// 判断iframe是否有效
if ((_EsdDynamicTransformationScript.iframeElement1 != undefined) && (_EsdDynamicTransformationScript.iframeElement2 != undefined)) {

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function () {

if ((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0] != undefined)
&& _EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0] != undefined) {
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1, _EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2, _EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

//第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
// _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});
}

}, 500);

}

// ----------------------------------------------- 动态要闻信息转载部分处理 结束 -----------------------------------------------

// ----------------------------------------------- 相关链接处理 开始 -----------------------------------------------

// 国家机构之前一个焦点切换
$(".flex-control-nav li:eq(4) a").focus(function () {
$(this).bind("keydown.iframeKeydown_about_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(0)").mouseover();
$(".tyj-xglj-ul li:eq(0) p a").first().focus();
return false;
}
});
});
$(".flex-control-nav li:eq(4) a").blur(function () {
$(this).unbind("keydown.iframeKeydown_about_1");
});
// 国家机构最后一个焦点
$(".tyj-xglj-ul li:eq(0) p a").last().focus(function () {
$(this).bind("keydown.iframeKeydown_about_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(0)").mouseout();
$(".tyj-xglj-ul li:eq(1)").mouseover();
$(".tyj-xglj-ul li:eq(1) p a").first().focus();
return false;
}
});
});

$(".tyj-xglj-ul li:eq(0) p a").last().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_2");
});
// 省级体育机构
$(".tyj-xglj-ul li:eq(1) p a").first().focus(function () {
$(this).bind("keydown.iframeKeydown_about_6", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(1)").mouseout();
$(".tyj-xglj-ul li:eq(0)").mouseover();
$(".tyj-xglj-ul li:eq(0) p a").last().focus();
return false;
} else if (e.keyCode == 9) {}
});
});

$(".tyj-xglj-ul li:eq(1) p a").first().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_6");
});
$(".tyj-xglj-ul li:eq(1) p a").last().focus(function () {
$(this).bind("keydown.iframeKeydown_about_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(1)").mouseout();
$(".tyj-xglj-ul li:eq(2)").mouseover();
$(".tyj-xglj-ul li:eq(2) p a").first().focus();
return false;
}
});
});

$(".tyj-xglj-ul li:eq(1) p a").last().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_3");
});

// 省级政府机构
$(".tyj-xglj-ul li:eq(2) p a").first().focus(function () {
$(this).bind("keydown.iframeKeydown_about_5", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(2)").mouseout();
$(".tyj-xglj-ul li:eq(1)").mouseover();
$(".tyj-xglj-ul li:eq(1) p a").last().focus();
return false;
} else if (e.keyCode == 9) {}
});
});

$(".tyj-xglj-ul li:eq(2) p a").first().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_5");
});

$(".tyj-xglj-ul li:eq(2) p a").last().focus(function () {
$(this).bind("keydown.iframeKeydown_about_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {}
else if (e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(2)").mouseout();
$(".tyj-xglj-ul li:eq(3)").mouseover();
$(".tyj-xglj-ul li:eq(3) p a").first().focus();
return false;
}
});
});

$(".tyj-xglj-ul li:eq(2) p a").last().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_3");
});

// 市级体育机构
$(".tyj-xglj-ul li:eq(3) p a").first().focus(function () {
$(this).bind("keydown.iframeKeydown_about_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(".tyj-xglj-ul li:eq(3)").mouseout();
$(".tyj-xglj-ul li:eq(2)").mouseover();
$(".tyj-xglj-ul li:eq(2) p a").last().focus();
return false;
} else if (e.keyCode == 9) {}
});
});

$(".tyj-xglj-ul li:eq(3) p a").first().blur(function () {
$(this).unbind("keydown.iframeKeydown_about_4");
});

// ----------------------------------------------- 相关链接处理 结束 -----------------------------------------------


}
/**
* 共通底部处理
*/

//定义跳转 使用jquery选择器语法
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
_EsdDynamicTransformationScript.navBlock.selector.top = ".main-hd";
_EsdDynamicTransformationScript.navBlock.selector.nav = ".nav_box0";
_EsdDynamicTransformationScript.navBlock.selector.footer = ".tyj-w1920:last";
if($(".content-index").length!=0){
_EsdDynamicTransformationScript.navBlock.selector.main = ".content-index";
}else{
_EsdDynamicTransformationScript.navBlock.selector.main = ".content-level";
}
_EsdDynamicTransformationScript.navBlock.selector.left = "";
_EsdDynamicTransformationScript.navBlock.selector.right = "";
_EsdDynamicTransformationScript.navBlock.selector.content = ".tyj-page";

//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
_EsdDynamicTransformationScript.navBlock.activateArray = [
".main-hd", ".top-label", ".search", ".nav_box0", _EsdDynamicTransformationScript.navBlock.selector.main, ".focusBox-picture", ".outBox-ywnews",
".outBox-left:eq(0)", ".tyj-w560", ".tyj-zzzt-top", ".outBox-left:eq(1)", ".outBox-right:eq(0)",
".outBox-left:eq(2)", ".outBox-right:eq(1)", ".outBox-left:eq(3)", ".outBox-right:eq(2)", ".content-index+.tyj-w1920",
".tyj-page", ".tyj-w1920:last"
]

for(var i=0; i<_EsdDynamicTransformationScript.navBlock.activateArray.length;i++){
$(_EsdDynamicTransformationScript.navBlock.activateArray[i]).addClass("navBlock");
}
/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
